﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CPPProject.CPP.Dto
{
    [AutoMapFrom(typeof(CPPRoleMenuDto))]
    public class CPPRoleMenuDto: EntityDto<int>
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        [MaxLength(500)]
        public string Path { get; set; }
        /// <summary>
        /// 组件
        /// </summary>
        [MaxLength(500)]
        public string Component { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [MaxLength(100)]
        public string Icon { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int OrderNum { get; set; } = 0;
        public bool Hidden { get; set; }
        /// <summary>
        /// 上级菜单
        /// </summary>
        public int ParentId { get; set; }
    }
}
